import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
       path:"/Home",
       name:"Home",
       component:()=>import("../View/Home.vue")
    },
    {
        path:"/Register",
        name:"Register",
        component:()=>import("../View/User/Register.vue")       
    },
    {
        path:"/",
        component:()=>import("../View/User/Login.vue")
    },
    {
        path:"/UserRegister/:Uid",
        name:"UserRegister",
        component:()=>import("../View/User/UserRegister.vue")
    },
    {
        path:"/AddInvestInfo",
        name:"UserLogin",
        component:()=>import("../View/Invest/AddInvestInfo.vue")
    },
    {
        path:"/ShowInvestInfo",
        name:"ShowInvestInfo",
        component:()=>import("../View/Invest/ShowInvestInfo.vue")
    },
    {
        path:"/EdInvestInfo/:Iid",
        name:"EdInvestInfo",
        component:()=>import("../View/Invest/EdInvestInfo.vue")
    },
    {
        path:"/AddFinanInfo",
        name:"AddFinanInfo",
        component:()=>import("../View/Finan/AddFinanInfo.vue")
    },
    {
        path:"/ShowFinanInfo",
        name:"ShowFinanInfo",
        component:()=>import("../View/Finan/ShowFinanInfo.vue")
    },
    {
        path:"/UpdateFinanInfo/:Fid",
        name:"UpdateFinanInfo",
        component:()=>import("../View/Finan/UpdateFinanInfo.vue")
    },
    {
        path:"/ShowUserInvestinfo",
        name:"ShowUserInvestinfo",
        component:()=>import("../View/Invest/ShowUserInvestinfo.vue")
    },
    {
        path:"/AddUserInvestinfo/:Iid",
        name:"AddUserInvestinfo",
        component:()=>import("../View/Invest/AddUserInvestinfo.vue")
    },
    {
        path:"/ShowAdminInvestInfo",
        name:"ShowAdminInvestInfo",
        component:()=>import("../View/Invest/ShowAdminInvestInfo.vue")
    },
    {
        path:"/UserInvestINfoPage/:Iid",
        name:"UserInvestINfoPage",
        component:()=>import("../View/Invest/UserInvestINfoPage.vue")
    },
    {
        path:"/AddUserFinanInfo/:Fid",
        name:"AddUserFinanInfo",
        component:()=>import("../View/Finan/AddUserFinanInfo.vue")
    },
    {
        path:"/ShowAdminFinanInfo",
        name:"ShowAdminFinanInfo",
        component:()=>import("../View/Finan/ShowAdminFinanInfo.vue")
    },
    {
        path:"/ShowManageFinanInfo",
        name:"ShowManageFinanInfo",
        component:()=>import("../View/Finan/ShowManageFinanInfo.vue")
    },
    {
        path:"/AllUserFinanInfoPage/:Fid",
        name:"AllUserFinanInfoPage",
        component:()=>import("../View/Finan/AllUserFinanInfoPage.vue")
    },
    {
        path:"/ShowBorrowInfo",
        name:"ShowBorrowInfo",
        component:()=>import("../View/Borrow/ShowBorrowInfo.vue")
    },
    {
        path:"/ShowUserBorrowInfo",
        name:"ShowUserBorrowInfo",
        component:()=>import("../View/Borrow/ShowUserBorrowInfo.vue")
    },
    {
        path:"/AddUserBorrowInfo/:Bid",
        name:"AddUserBorrowInfo",
        component:()=>import("../View/Borrow/AddUserBorrowInfo.vue")
    },
    {
        path:"/ShowUserInvestRedeem",
        name:"ShowUserInvestRedeem",
        component:()=>import("../View/Invest/ShowUserInvestRedeem.vue")
    },
    {
        path:"/AddUserInvestRedeem/:UIid",
        name:"AddUserInvestRedeem",
        component:()=>import("../View/Invest/AddUserInvestRedeem.vue")
    },
    {
        path:"/ShowAllUserInvestRemdeem",
        name:"ShowAllUserInvestRemdeem",
        component:()=>import("../View/Invest/ShowAllUserInvestRemdeem.vue")
    },
    {
        path:"/AllUserInvestRemdeemPage/:Iid",
        name:"AllUserInvestRemdeemPage",
        component:()=>import("../View/Invest/AllUserInvestRemdeemPage.vue")
    },
    {
        path:"/ShowFinanRemdeem",
        name:"ShowFinanRemdeem",
        component:()=>import("../View/Finan/ShowFinanRemdeem.vue")
    },
    {
        path:"/AddUserFinanRemdeemPage/:UFid",
        name:"AddUserFinanRemdeemPage",
        component:()=>import("../View/Finan/AddUserFinanRemdeemPage.vue")
    },
    {
        path:"/AllUserFinanRemdeemInfo",
        name:"AllUserFinanRemdeemInfo",
        component:()=>import("../View/Finan/AllUserFinanRemdeemInfo.vue")
    },
    {
        path:"/AllUserFinanRemdeemInfoPage/:Fid",
        name:"AllUserFinanRemdeemInfoPage",
        component:()=>import("../View/Finan/AllUserFinanRemdeemInfoPage.vue")
    },
    {
        path:"/ShowUserBorrowMoneyInfo",
        name:"ShowUserBorrowMoneyInfo",
        component:()=>import("../View/Borrow/ShowUserBorrowMoneyInfo.vue")
    },
    {
        path:"/AddUserBorrowRepay/:UBId",
        name:"AddUserBorrowRepay",
        component:()=>import("../View/Borrow/AddUserBorrowRepay.vue")
    },
    {
        path:"/ShowAdminBorrowMoneyInfo",
        name:"ShowAdminBorrowMoneyInfo",
        component:()=>import("../View/Borrow/ShowAdminBorrowMoneyInfo.vue")
    },
    {
        path:"/ShowUserBorrowRepayInfo/:BMid",
        name:"ShowUserBorrowRepayInfo",
        component:()=>import("../View/Borrow/ShowUserBorrowRepayInfo.vue")
    },
    {
        path:"/ShowUserInfo",
        name:"ShowUserInfo",
        component:()=>import("../View/User/ShowUserInfo.vue")
    }
]


// 创建路由实例
const router = createRouter({
    history: createWebHistory(),
    routes:routes  // 定义路由规则数组
})

//导出
export default router